<?php 
namespace app\admin\validate;
use think\Validate;
class Owner extends Validate{
	// 正则表达式 regex = ['zip'=>'\d{6}',...]
  protected $regex = [
  	// 'zname'=>'\w{2,6}',
  ];

  // 当前验证的规则
  protected $rule = [
  	// 'oname'=>'require',
  	// 'tel'=>'require|length:11|number',
  	'area'=>'require',
  	'vill'=>'require',
  	'addr'=>'require',
  	'ini'=>'require',
    'des1'=>'require',
    'des2'=>'require',
 
  ];

  // 验证提示信息
  protected $message = [

  	'area.require'=>'区/县不能为空',
  	'vill.require'=>'小区不能为空',
  	'addr.require'=>'地址不能为空',
  	'ini.require'=>'房屋配置不能为空',
    'des1.require'=>'房屋描述不能为空',
    'des2.require'=>'小区/周边不能为空',

  ];

  // 验证场景 scene = ['edit'=>'name1,name2,...']
  protected $scene = [
  	// 'add'=>'uname,email,pwd',
  	// 'edit'=>'uname,email',
  ];
}



 ?>